package com.sirius.meta.mall.bus.jdk8.lambda;

/**
 * @author Surging
 * @version 1.0
 * @ClassName ThreadTest
 * @date 2022/1/18 20:45
 * @desc
 */
public class ThreadTest {

    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println(Thread.currentThread().getName());
            }
        }).start();

        new Thread(() -> System.out.println(Thread.currentThread().getName())).start();
    }
}
